home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shs_dlog_broken.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  65 lines

  1. # Jones 3D Cog Script
  2. #
  3. # shs_Dlog_broken.cog   Say the line, Indy.  
  4. #
  5. # [JWC]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13. message     startup
  14. message     activated
  15.                                                           
  16. sound        in_broken=Ss02j02.wav    local
  17.  
  18. thing        player            local
  19. thing        elevator
  20. thing         interpcam
  21.  
  22. int            spoken=0        local
  23.  
  24. end
  25.  
  26. # ========================================================================================
  27.  
  28. code
  29.  
  30. startup:
  31.     
  32.           
  33.     player = GetLocalPlayerThing();
  34.     return;
  35.     
  36. activated:
  37.     
  38.     if ((GetSenderRef() == elevator) && (spoken == 0)) 
  39.     {
  40.         spoken=1;
  41.         MakeMeStop();
  42.         StartCutscene(1);
  43.         
  44.         # Camera stuff
  45.         SetExtCamOffsetToThing(interpCam);
  46.         
  47.         sleep(.5);
  48.  
  49.         # "This looks like a dumb-waiter..."
  50.         PlayVoice(player, in_broken, 1.0, 1);
  51.         
  52.         RestoreExtCam();
  53.         ClearActorFlags(player, 0x200000); # player in control
  54.         EndCutscene();
  55.         spoken=0;
  56.     }
  57.     
  58. return;
  59.      
  60.   
  61.  
  62. end
  63.  
  64.  
  65.